package bitclub;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Prueba {

    public static Trabajador dameTrabajador() {
        Trabajador trabajador = new Trabajador("pepe", "Sanchez", "28146852", true, "asdf@hotmail.com", "954765428", "666756829", "c/azul n8", "40345", "Sevilla", new Date(1980, 3, 1), 'h', new Date(1997, 7, 4), null, "12345", true);
        return trabajador;
    }

    public static List<Trabajador> dameTrabajadores() {
        List<Trabajador> trabajadores = new ArrayList();
        trabajadores.add(new Trabajador("pepe", "Sanchez", "28146852", true, "asdgasg@hotmail.com", "954356499", "666756829", "c/azul n8", "40345", "Sevilla", new Date(1980, 3, 1), 'h', new Date(1997, 7, 4), null, "12345", true));
        trabajadores.add(new Trabajador("luis", "martinez", "43563545", true, "erhgergas@hotmail.com", "954765428", "666756829", "c/verde n3", "40345", "Sevilla", new Date(1982, 1, 6), 'h', new Date(1997, 7, 4), null, "55544", true));
        trabajadores.add(new Trabajador("maria", "lopez", "86784556", true, "werhgerhgdf@hotmail.com", "954113245", "666756829", "c/naranja n6", "40345", "Sevilla", new Date(1980, 7, 2), 'm', new Date(1997, 7, 4), null, "23423", true));
        return trabajadores;
    }

    public static Cliente dameCliente() {
        Cliente cliente = new Cliente("pepe", "Sanchez", "28146852", true, "asdf@hotmail.com", "954765428", "666756829", "c/azul n8", "40345", "Sevilla", new Date(1980, 3, 1), 'h', new Date(1997, 7, 4), null, "12345", 2.76, null, false);
        List<Alquiler> alquileres = new ArrayList();
        alquileres.add(new Alquiler(cliente, new Date(2012, 9, 13), new Date(2011, 9, 14), dameArticulos(), true, 3, 4, dameTrabajador()));
        alquileres.add(new Alquiler(cliente, new Date(2013, 8, 3), new Date(2015, 4, 5), dameArticulos(), false, 2, 6, dameTrabajador()));
        alquileres.add(new Alquiler(cliente, new Date(2014, 7, 6), new Date(2017, 3, 8), dameArticulos(), false, 1, 8, dameTrabajador()));
        cliente.setListAlquiler(alquileres);
        return cliente;
    }

    public static List<Cliente> dameClientes() {
        List<Cliente> clientes = new ArrayList();
        clientes.add(new Cliente("pepe", "Sanchez", "28146852", true, "asdgasg@hotmail.com", "954356499", "666756829", "c/azul n8", "40345", "Sevilla", new Date(1980, 3, 1), 'h', new Date(1997, 7, 4), null, "12345", 9.94, null, false));
        clientes.add(new Cliente("luis", "martinez", "43563545", true, "erhgergas@hotmail.com", "954765428", "666756829", "c/verde n3", "40345", "Sevilla", new Date(1982, 1, 6), 'h', new Date(1997, 7, 4), null, "55544", 12.5, null, false));
        clientes.add(new Cliente("maria", "lopez", "86784556", true, "werhgerhgdf@hotmail.com", "954113245", "666756829", "c/naranja n6", "40345", "Sevilla", new Date(1980, 7, 2), 'm', new Date(1997, 7, 4), null, "23423", 5.30, null, false));
        return clientes;
    }

    public static Proveedor dameProveedor() {
        Proveedor proveedor = new Proveedor("pepe", "Sanchez", "peliculitas SL", "28146852", "asdf@hotmail.com", "666756829", "c/azul n8", "Sevilla", "40345");
        return proveedor;
    }

    public static List<Proveedor> dameProveedores() {
        List<Proveedor> proveedores = new ArrayList();
        proveedores.add(new Proveedor("pepe", "Sanchez", "Peliculitas SL", "28146852", "asdgasg@hotmail.com", "666756829", "c/azul n8", "Sevilla", "40345"));
        proveedores.add(new Proveedor("luis", "martinez", "Cinemanía SA", "43563545", "erhgergas@hotmail.com", "666756829", "c/verde n3", "Sevilla", "40347"));
        proveedores.add(new Proveedor("maria", "lopez", "VendoPelis INC", "86784556", "werhgerhgdf@hotmail.com", "666756829", "c/naranja n6", "Sevilla", "40340"));
        return proveedores;
    }

    public static Pelicula damePelicula() {
        Pelicula pelicula = new Pelicula("La matanza de texas", "terror", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Penelope Cruz", "España", 80, "DVD");
        return pelicula;
    }

    public static List<Pelicula> damePeliculas() {
        List<Pelicula> peliculas = new ArrayList();
        peliculas.add(new Pelicula("La matanza de texas", "terror", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Penelope Cruz", "España", 80, "DVD"));
        peliculas.add(new Pelicula("La matanza de texas2", "comedia", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Silvester Stalon", "Francia", 90, "DVD"));
        peliculas.add(new Pelicula("La matanza de texas3", "romantica", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Chiquito", "EEUU", 93, "DVD"));
        return peliculas;
    }

    public static Articulo dameArticulo() {
        Articulo pelicula = new Pelicula("La matanza de texas", "terror", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Penelope Cruz", "España", 80, "DVD");
        return pelicula;
    }

    public static List<Articulo> dameArticulos() {
        List<Articulo> peliculas = new ArrayList();
        peliculas.add(new Pelicula("La matanza de texas", "terror", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Penelope Cruz", "España", 80, "DVD"));
        peliculas.add(new Pelicula("La matanza de texas2", "comedia", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Silvester Stalon", "Francia", 90, "DVD"));
        peliculas.add(new Pelicula("La matanza de texas3", "romantica", 1982, 18, true, new Date(2011, 9, 13), null, dameProveedor(), dameTarifa(), 3, true, "Chiquito", "EEUU", 93, "DVD"));
        return peliculas;
    }

    public static Videojuego dameVideojuego() {
        Videojuego videojuego = new Videojuego("FIFA 2010","deporte",2010, 13, true, new Date(1, 1, 2010), null, dameProveedor(), dameTarifa(), 2,true, "plataforma1", "productora1");
        return videojuego;
    }

    public static List<Videojuego> dameVideojuegos() {
        List<Videojuego> videojuegos = new ArrayList();
        videojuegos.add(new Videojuego("FIFA 2010","deporte",2010, 13, true, new Date(1, 1, 2010), null, dameProveedor(), dameTarifa(), 2,true, "supernintendo", "nintendo"));
        videojuegos.add(new Videojuego("Mata mucho","guerra",2002, 13, true, new Date(1, 1, 2010), null, dameProveedor(), dameTarifa(), 2,true, "gamecube", "sony"));
        videojuegos.add(new Videojuego("Avion Total","simulador",2005, 13, true, new Date(1, 1, 2010), null, dameProveedor(), dameTarifa(), 2,true, "gameboy", "sega"));
        return videojuegos;
    }

    public static Tarifa dameTarifa() {
        Tarifa tarifa = new Tarifa("pelicula normal", 2, 3.5, 1);
        return tarifa;
    }

    public static List<Tarifa> dameTarifas() {
        List<Tarifa> tarifas = new ArrayList();
        tarifas.add(new Tarifa("pelicula normal", 2, 3.5, 1));
        tarifas.add(new Tarifa("pelicula estreno", 2, 4.5, 1.5));
        tarifas.add(new Tarifa("videojuego normal", 4, 5, 2));
        tarifas.add(new Tarifa("videojuego estreno", 4, 8, 3));
        return tarifas;
    }

    public static List<Alquiler> dameAlquileres() {
        List<Alquiler> alquileres = new ArrayList();
        alquileres.add(new Alquiler(dameCliente(), new Date(2012, 9, 13), new Date(2011, 9, 14), dameArticulos(), true, 3, 4, dameTrabajador()));
        alquileres.add(new Alquiler(dameCliente(), new Date(2013, 8, 3), new Date(2015, 4, 5), dameArticulos(), false, 2, 6, dameTrabajador()));
        alquileres.add(new Alquiler(dameCliente(), new Date(2014, 7, 6), new Date(2017, 3, 8), dameArticulos(), false, 1, 8, dameTrabajador()));
        return alquileres;
    }
    

    public static List<OfertaDiaSemana> dameOfertas() {
        List<OfertaDiaSemana> ofertas = new ArrayList();
        ofertas.add(new OfertaDiaSemana(0,1.00,0,1,null,null,"lunesUnEuro","lunes"));
        ofertas.add(new OfertaDiaSemana(0.5,0,0,0,null,null,"miercolesMitadDePrecio","miercoles"));
        ofertas.add(new OfertaDiaSemana(0,0,6,2,null,null,"ofertonViernes","viernes"));
        return ofertas;
    }
}
